<?php
require_once "db.php";
require_once "util.php";
require_once "header.php";

get_database_connection();

$id = $_REQUEST["id"];
$title = $_REQUEST["title"];
$content = $_REQUEST["content"];

// Inserting
$sql = "UPDATE slides SET title = '$title', content = '$content' WHERE id = $id";
$res = mysql_query($sql);

set_flash("Slide atualizado.");
ddd_redirect("edit_slide.php?id=" . $id);
?>



